package com.qf.dao;

import com.qf.pojo.Cart;

import java.util.List;

public interface CartDao  {

    //加入数据库
    int insertCart(Cart cart);

    //读出数据库
    List<Cart> selectAll(Integer uid);

    Cart selectOne(Integer uid, Integer gid);

    int updateOne(Integer uid, Integer gid, int num);

    //删掉一个
    int deleteOne(Integer uid, Integer gid);
}
